package com.guguskins.back.controller;

import com.guguskins.back.common.constant.RedisConstant;
import com.guguskins.back.service.GuBoxService;
import com.guguskins.back.service.GuSystemConfigService;
import com.guguskins.back.utils.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date 2021/5/10 9:02
 */
@RestController
@RequestMapping("/inner")
public class InnerController {

    @Autowired
    private GuBoxService boxService;

    @Autowired
    private GuSystemConfigService systemConfigService;

    @RequestMapping("/deleteSystemConfig")
    public boolean deleteSystemConfig() {
        RedisUtil.deleteKey(RedisConstant.SYSTEM_CONFIG);
        return true;
    }

}
